import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter_shop/model/details.dart';
import 'package:flutter_shop/provide/details_provide.dart';
import 'package:provide/provide.dart';
import 'package:flutter_html/flutter_html.dart';


class DetailsWeb extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Provide<DetailsInfoProvide>(
      builder: (context,build,details){
        DetailsModel detailsModel=details.detailsModel;

        bool isLeft=details.isLeft;

        if(isLeft){
          return Container(
            child: Html(
                data:detailsModel.data.goodInfo.goodsDetail) ,
          );
        }else{
          return Container(
            padding: EdgeInsets.only(top: 10.0,bottom: 10.0),
            child: Text('暂无评论'),
          );
        }
      },
    );
  }
}